package com.knowledge.service;

import com.knowledge.dao.entity.NewsEntity;
import com.baomidou.mybatisplus.extension.service.IService;
import com.knowledge.vo.Result;
import com.knowledge.vo.params.NewsParam;
import com.knowledge.vo.params.PageParams;

/**
 * <p>
 * 消息表 服务类
 * </p>
 *
 * @author zzz
 * @since 2022-03-03
 */
public interface NewsService extends IService<NewsEntity> {

    /**
    　* @description: 分页查询消息
    　* @param ${tags}
    　* @author zzz
    　* @date 2022/3/4 12:38
    */
    Result listNewsWithPage(NewsParam newsParam , PageParams pageParams);

    /**
    　* @description: 添加消息
    　* @param ${tags}
    　* @author zzz
    　* @date 2022/3/4 15:29
    */
    void addNews(NewsEntity newsEntity);

     /**
     　* @description: 修改成已读
     　* @param ${tags}
     　* @return ${return_type}
     　* @throws
     　* @author zzz
     　* @date 2022-03-04 23:46
     */
     Boolean updateToRead(Integer id);
}
